all: libmymath.so

CC = gcc 
CFLAGS = -fvisibility=hidden
#CFLAGS = -fvisibility=default
LDFLAGS = 

%.o : %.c
	$(CC) $(CFLAGS) -shared -fPIC -c $< -o $@

libmymath.so : mymath.o
	ld $^ -shared -fPIC -o libmymath.so

.PHONY: clean
clean:
	rm -rf *.o libmymath.so